package com.qk.management.mapper;

import com.qk.dto.activity.ActivityDTO;
import com.qk.entity.Activity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActivityMapper {

    List<Activity> selectActivityByPage(ActivityDTO activityDTO);

    Activity selectActivityById(Integer id);

    List<Activity> selectActivityByType(Integer type);

    void insertActivity(Activity activity);

    void deleteActivity(Integer id);

    void updateActivity(Activity activity);
}
